* {
    box-sizing: border-box;
}

h1 {
    font-size: 2rem;
    margin-top: 20px;
    border-bottom: 1px solid #888888;
    margin-bottom: 35px;
    line-height: 1.5;
    font-weight: 500;
    color: #888888;
}

h2 {
    font-size: 1.6rem;
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1.1rem;
}

.main-content,
.main-nav-content {
    max-width: 1200px;
}

.alert-wrapper {
    /* display: none; Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.alert-wrapper .alert {
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    width: 50%; /* Could be more or less, depending on screen size */
}

/*
 * Used instead of bootstrap's own "d-flex" class just without the important bang.
 * @see https://github.com/twbs/bootstrap/issues/22076
 */
.sova-flex {
    display: flex;
    margin-top: 10px;
    margin-bottom: 10px;
}

.shadowy-containter {
    box-shadow: 5px 10px 18px #888888;
    border-radius: 5px;
    position: relative;
    padding: 15px;
    margin-bottom: 30px;
}

.shadowy-containter img {
    max-width: 100%;
}

.question-peek-wrapper,
.question-annotation-wrapper {
    padding: 0 15px;
}

.question-annotation-wrapper {
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    margin-bottom: 10px;
}

.question-peek-wrapper .badge,
.question-annotation-wrapper .badge {
    margin-right: 5px;
}

.question-peek-wrapper small {
    margin-left: auto;
}

.word-cloud-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-body {
    padding: 0.5rem;
}

pre {
    padding: 5px;
    border-radius: 5px;
    background-color: #f0efefe0;
}

.list-group-item {
    border-radius: 0.25rem;
}

.mark-question {
    margin-top: 20px;
    margin-bottom: 35px;
}

.search-result-body {
    word-wrap: break-word;
}

.pagination-buttons button {
    margin: 0 5px 0 5px;
}

.error {
    color: red;
}

/**
 * Adjacent selector, selects only the a directly after another a
 */
a + a {
    margin-top: 20px;
}

.frontpage-icon {
    width: 90%;
    height: 90%;
}